package com.example.callcenter.service.impl;

import com.example.callcenter.dto.SmsDTO;
import com.example.callcenter.rabbitmq.SmsProducer;
import com.example.callcenter.service.SmsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SmsServiceImpl implements SmsService {

    @Autowired
    private SmsProducer smsProducer;

    @Override
    public void sendSms(SmsDTO smsDTO) {
        smsProducer.sendSms(smsDTO);
    }
}